sql_scalar create_data_reader <div> {{ 'select companyname from base_companies where id=@P0' | sql_scalar, company.id, 0 }} </div> {% assign dr= 'select top 20 companyname,companycode,id,taxid,vatid,email from base_companies where id=@P0 or id=@P1' | create_data_reader, company.id, 3333 %} <div> {%for r in dr %} <div> {{ r.companyname }} - {{ r.companycode }} - {{ r.id }} - {{ r.taxid }} - {{ r.vatid }} - {{ r.email }} </div> {% endfor %}